<script setup lang="ts">
import { onMounted, ref } from 'vue';
import {  RouterView, useRouter } from 'vue-router';
import {user} from './stores/counter'
const router = useRouter()
onMounted(()=>{
  if(!user().isLogin()){
   router.replace("/login");
  }
})
</script>
<template>
  <RouterView />
</template>

<style scoped>
</style>
